package com.yigang.service;

import com.yigang.entity.ShopingCart;
import com.yigang.entity.Shoppingcart;
import com.yigang.entity.ShoppingcartVO;

import java.util.List;
import java.util.Map;

public interface ShopingCartService {
public List<Map<String, Object>> getAllShopingCartById();

    int addCart(Shoppingcart shoppingcart);

    int updateNumCart(Shoppingcart shopingCart);

    int delCart(Shoppingcart shopingCart);

    int delAllCart(Shoppingcart shopingCart);

    Shoppingcart getByProductId(Integer valueOf);

    Shoppingcart getByProductIdAndUserId(int id, Integer productId);

    List<ShoppingcartVO> getAllShoppingcart(Shoppingcart shopingCart);

}
